#  decorator 装饰器
def log(func):
    def wrapper(*args,**kw):
        print('call %s():'% func.__name__)
        return func(*args,**kw)
    return wrapper

def log(text):
    def decorator(func):
        def wrapper(*args,**kw):
            print('%s %s():'(text,func.__name__))
            return func(*args,**kw)
        return wrapper
    return decorator

import functools

def  log(text):
    def decorator(func):
        @functools.wraps(func)
        def wrapper(*args,**kw):
            print(('%s %s():' % (text,func.__name__)))
            return func(*args,**kw)
        return wrapper
    return decorator()

